<?php
/**
 * --- .assign role start ---
 * @SWG\Post(
 *    path="/role/assign",
 *    tags={"role"},
 *    summary="分配权限",
 *    description="分配角色或者权限",
 *    produces={"application/json"},
 *     consumes={"application/x-www-form-urlencoded", "application/json"},
 *
 *    @SWG\Parameter(
 *        name = "user_id",
 *        description = "用户ID",
 *        in = "formData",
 *        type = "integer",
 *        required = true
 *    ),
 *
 *    @SWG\Parameter(
 *        name = "roles",
 *        description = "权限或者角色的数组 [['name'=>'角色名','type=1'],['name'=>'权限名','type'=2]]",
 *        in = "formData",
 *        type = "string",
 *        required = true
 *    ),
 *
 *    @SWG\Response(
 *        response = "200",
 *        description = "success",
 *        @SWG\Schema(ref="#/definitions/SuccessDefault")
 *    ),
 *
 *    @SWG\Response(
 *        response = "default",
 *        description = "请求失败， http status 强行转为200, 通过code判断",
 *        @SWG\Schema(ref="#/definitions/ErrorDefault")
 *    )
 * )
 * --- .forget-password end ---
 */
/**
 *
 * @SWG\Get(
 *     path="/role/index",
 *     tags={"role"},
 *     summary="角色列表",
 *     description="获取角色列表",
 *     produces={"application/json"},
 *
 *  @SWG\Parameter(
 *        in = "header",
 *        name = "X-Api-Token",
 *        description = "token",
 *        required = true,
 *        type = "string"
 *     ),
 *     @SWG\Response(
 *         response = 200,
 *         description = "success",
 *         @SWG\Schema(ref="#/definitions/SuccessDefault")
 *     ),
 *
 *     @SWG\Response(
 *         response = 400,
 *         description = "请求失败， http code 强行转为200,通过code判断",
 *         @SWG\Schema(ref="#/definitions/ErrorDefault")
 *     )
 * )
 */

/**
 *
 * @SWG\Get(
 *     path="/role/permission",
 *     tags={"role"},
 *     summary="权限列表",
 *     description="获取权限列表",
 *     produces={"application/json"},
 *     @SWG\Parameter(
 *        in = "header",
 *        name = "X-Api-Token",
 *        description = "token",
 *        required = true,
 *        type = "string"
 *     ),
 *
 *     @SWG\Response(
 *         response = 200,
 *         description = "success",
 *         @SWG\Schema(ref="#/definitions/SuccessDefault")
 *     ),
 *
 *     @SWG\Response(
 *         response = 400,
 *         description = "请求失败， http code 强行转为200,通过code判断",
 *         @SWG\Schema(ref="#/definitions/ErrorDefault")
 *     )
 * )
 */
